from base.base import Base
from selenium.webdriver.common.by import By
class ReconcileAccounts(Base):
    # 对账管理
    reconcile_accounts_loc=(By.XPATH,'/html/body/div[1]/div[2]/div[2]/div[2]/div[13]/h2')
    def reconcile_accounts(self):
        self.click(self.reconcile_accounts_loc)
    # 对账批次
    lot_loc=(By.XPATH,'/html/body/div[1]/div[2]/div[2]/div[2]/div[14]/ul/li[2]/div/a')
    def lot(self):
        self.times(2)
        self.click(self.lot_loc)

    # 输入框点击聚焦
    billDay_loc=(By.CLASS_NAME,'inputDateButton')
    def billDay(self):
        self.click(self.billDay_loc)
    #点击日期
    day_loc=(By.XPATH,'/html/body/div[13]/div/div[2]/dl[2]/dd[4]')
    def day(self):
        self.click(self.day_loc)

    # 查询按钮
    find_loc=(By.CSS_SELECTOR,'html body div#layout div#container div#navTab.tabsPage div.navTab-panel.tabsPageContent.layoutBox div.page.unitBox div.pageHeader form div.searchBar table.searchContent tbody tr td div.buttonActive div.buttonContent button')
    def find(self):
        self.click(self.find_loc)








